package com.niit.schoolhub.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 轻量博客-文章分类
 * </p>
 *
 * @author kaguya
 * @since 2021-11-27
 */
@TableName("yesapi_one_category")
@ApiModel(value = "YesapiOneCategory对象", description = "轻量博客-文章分类")
public class YesapiOneCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("栏位名")
    private String yesapiOneCategoryName;

    @ApiModelProperty("链接")
    private String route;

    @ApiModelProperty("上级ID")
    private Integer pid;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("0隐藏1显示")
    private Integer yesapiOneCategoryStatus;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getYesapiOneCategoryName() {
        return yesapiOneCategoryName;
    }

    public void setYesapiOneCategoryName(String yesapiOneCategoryName) {
        this.yesapiOneCategoryName = yesapiOneCategoryName;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getYesapiOneCategoryStatus() {
        return yesapiOneCategoryStatus;
    }

    public void setYesapiOneCategoryStatus(Integer yesapiOneCategoryStatus) {
        this.yesapiOneCategoryStatus = yesapiOneCategoryStatus;
    }

    @Override
    public String toString() {
        return "YesapiOneCategory{" +
        "id=" + id +
        ", yesapiOneCategoryName=" + yesapiOneCategoryName +
        ", route=" + route +
        ", pid=" + pid +
        ", sort=" + sort +
        ", yesapiOneCategoryStatus=" + yesapiOneCategoryStatus +
        "}";
    }
}
